import requests

base_url = "http://crawler-movie.skysrt.com/sync-third/videointroduce/callbackGather?gid={}"

payload={}
headers = {
   'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}

# 定义 coocaaVId 列表
gid_list = [
"gaewqskh4cnmyo",
"gaewqskb8ary80",
"gaewqskhxez3sw",
"gaewqsk9ogjny8",
"gaewqskctlg3r4",
"gaewqsken7s2rk",
"gaewqsk8urr400",
"gaewqskdqjlvy8",
"gaewqskg74i9ds",
"gaewqskc15lq0w"
]

# 依次调用接口
for gid in gid_list:
    url = base_url.format(gid)
    try:
        response = requests.get(url, headers=headers)
        response.raise_for_status()  # 如果响应状态码不是 200，抛出异常
        print(f"Response for {gid}: {response.text}")
    except requests.exceptions.RequestException as e:
        print(f"Error occurred for {gid}: {e}")